<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ include file="./../login.jsp"%>

<% if (email_status == null) { %>

<form id="login" action="./../login.jsp" method="GET"
	accept-charset="utf-8">
	<label class="login_email"> <input type="text"
		name="login_email" value="E-mail"
		onBlur="if(this.value == 'E-mail') { this.value=''}"
		onFocus="if (this.value == 'E-mail') {this.value=''}"
		onkeydown="if(event.keyCode==13){submit();}" /> 
		<a onClick="document.getElementById('login_password').value = '??????';document.getElementById('login').submit();" title="forget password">
		<i class="fa fa-question"></i></a>
	</label> <label> <input type="password" name="login_password" id = "login_password"
		value="******" onBlur="if(this.value == '******') { this.value=''}"
		onFocus="if (this.value == '******') {this.value=''}"
		onkeydown="if(event.keyCode==13){submit();}" /> 
		<a onClick="document.getElementById('login').submit()" title="login">
		<i class="fa fa-arrow-right"></i></a>
	</label>
</form>

<% } else { 
	String admin = user_info.get("admin");
	if (admin == null) admin = "null";
%>

<div>您好, <%= user_info.get("realname") %></div>
<div>您的权限: <%= admin %></div>
<% if (admin.equals("admin")) {%>
	<div>您具有管理权限.</div>
<% } %>
<% if (admin.equals("user")) {%>
	<div>您是普通用户.</div>
<% } %>
<% if (admin.equals("forbidden")) {%>
	<div>您已被禁言, 请联系管理员.</div>
<% } %>
<% if (admin.equals("invalid")) {%>
	<div>您尚未验证邮箱, 权限受限, 请验证邮箱.</div>
<% } %>

<% } %>